package com.example.demo.rabbitmq.topic;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author 鱼仔
 * @date 2021/7/1 5:28 下午
 * 概要
 */
@RabbitListener(queues = "topic2.test")
@Slf4j
@Component
public class TopicReceiver2 {


    @RabbitHandler
    public void receive(String msg) {
        log.error("topic2.test队列的消息：" + msg);
    }

}
